﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:meffed="http:\\www.codeplex.com\MEFedMVVM"
        xmlns:views="clr-namespace:MEFedMVVMDemo.Views"
        xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" 
        xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" 
        x:Class="MEFedMVVMDemo.MainWindow"
        Height="350" Width="525"
		meffed:ViewModelLocator.NonSharedViewModel="MainViewModel"
        Title="MEFed up" 
        >
    <Grid>
    	<Grid.ColumnDefinitions>
        	<ColumnDefinition/>
        	<ColumnDefinition/>
        </Grid.ColumnDefinitions>
		<Grid.RowDefinitions>
			<RowDefinition />
			<RowDefinition Height="Auto"/>
		</Grid.RowDefinitions>
        <views:UsersScreen Grid.Column="0" />
        <views:SelectedUser Grid.Column="1"/>
        
		<Border Height="30" Grid.Row="1">
			<Button Content="Add New" HorizontalAlignment="Left" Margin="5" Width="80"
					meffed:NavigationExtensions.NavigateTo="http://meffeddemo/addUser" 
					meffed:NavigationExtensions.NavigationHost="{Binding ElementName=AddUser}"/>
		</Border>
		
    	<ContentControl Grid.RowSpan="2" Grid.ColumnSpan="2" x:Name="AddUser"  Width="300" Height="250" HorizontalAlignment="Center" VerticalAlignment="Center"/>
    </Grid>
</Window>
